package com.teamall.web.fpgz.db.dao.mapper;

import com.teamall.web.fpgz.db.arg.CodeFamilyInfoArg;
import com.teamall.web.fpgz.db.po.CodeFamilyInfoPO;

import java.math.*;
import java.util.*;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface ICodeFamilyInfoMapper {
    
    List<Integer> countByArg(CodeFamilyInfoArg arg);

    List<CodeFamilyInfoPO> selectByArg(CodeFamilyInfoArg arg);

    CodeFamilyInfoPO selectByPrimaryKey(String id);

    List<CodeFamilyInfoPO> selectByArgAndPage(CodeFamilyInfoArg arg, RowBounds rowBound);

    int insert(CodeFamilyInfoPO record);

    int insertSelective(CodeFamilyInfoPO record);

    int insertBatch(@Param("list") List<CodeFamilyInfoPO> records);

    int updateByArgSelective(@Param("record") CodeFamilyInfoPO record,
            @Param("arg") CodeFamilyInfoArg arg);

    int updateByArg(@Param("record") CodeFamilyInfoPO record,
            @Param("arg") CodeFamilyInfoArg arg);

    int updateByPrimaryKeySelective(CodeFamilyInfoPO record);

    int updateByPrimaryKey(CodeFamilyInfoPO record);
    
    int deleteByArg(CodeFamilyInfoArg arg);
    
    int deleteByPrimaryKey(String id);
    
}